<template>
  <div class="good-n">
    <div class="item">
      <div class="item-img">
        <img :src="goodsItem.imgUrl" alt="">
      </div>
      
      <div class="item-title">
        <p>{{goodsItem.title}}</p>
        <span class="span1">¥</span>
        <span class="span2">{{goodsItem.price}}</span>
        <button>加入购物车</button>
      </div>
      
    </div>
    <!-- <a :href="goodsItem.aUrl"> -->
      <!-- <img :src="goodsItem.imgUrl" alt=""> -->
    <!-- </a> -->
    <!-- <div class="good-info"> 
      <p>{{goodsItem.title}}</p>
      <span class="score">{{goodsItem.score}}</span>
      <span class="s_num">{{goodsItem.sales_number}}</span>
      <img :src="goodsItem.assess" alt="">
    </div> -->
    
  </div>
</template>

<script>
  export default {
    name: "GoodN",
    props: {
      goodsItem: {
        type: Object
      }
    }
  }
</script>

<style scoped>

  .item {
    display: flex;
  }

  .good-n .item-img {
    float: left;
  }
  .good-n .item-img img {
    width: 150px;
    height: 150px;
  }

  .good-n .item-title p {
    font-weight: bolder;
    font-size: 18px;
  }

  .good-n .item-title .span1{
    color: red;
    font-size: 15px;
  }

  .good-n .item-title .span2{
    color: red;
    font-size: 20px;
  }

  .good-n .item-title button {
    background-color: #64b587;
    border: 1px;
    border-radius: 2em 2em 2em 2em;
    color: #fff;
    width: 80px;
    height: 30px;
    position: absolute;
    left: 285px;
  }
</style>